script to get interface rate