shelfloha.blogg.se

How to use telnet to see router cpu speed
How to use telnet to see router cpu speed










#HOW TO USE TELNET TO SEE ROUTER CPU SPEED CODE#

Like the snippet code in Example 1 and Example 2, this snippet iterates through the self.oids dictionary:įor group, oid_group in ():įor obj_id, oid_detail in oid_eritems(): The self.cred_details dictionary is used to make a connection to the switch: The regular expression module is also imported, which will be used to parse the performance data from the response: This section walks through all the snippet code used in this example.įirst, the telnetlib module is imported, which will be used to make the telnet connection to the switch. Enter "show cpu utilization|five minute:" in this field.

how to use telnet to see router cpu speed

  • Repeat steps two, three, and four to create a collection object for the five minute CPU collection, using the following values:.
  • Enter "show cpu utilization|one minute:" in this field.
  • Repeat steps two, three, and four to create a collection object for the one minute CPU collection, using the following values:.
  • Select the Save button, then select the Reset button to clear the values you entered.
  • You can leave the remaining fields set to the default values.
  • This example does not have specific requirements for the other collection object settings.
  • There is only one snippet for this Dynamic Application. Select 1 Performance Counter in this field. The collected values for this collection object will be incrementing numeric values from which a delta must be taken. Enter "show cpu utilization|five second:" in this field.
  • Supply values in the following fields to create the first object, which will collect the five second CPU data:.
  • Select the Collections tab in the Dynamic Application Editor pane.
  • To create the collection objects for this Dynamic Application, perform the following steps:

    how to use telnet to see router cpu speed

    The command to execute the specific CPU value to collect for each object will be defined in the Snippet Arguments field, separated by a pipe ('|'). The collection objects will specify the command to execute (show cpu utilization) and the specific CPU value to be extracted using a regular expression for the collection object. The snippet code for this example will use a regular expression to extract specific CPU values from the CPU response line in the switch.

    how to use telnet to see router cpu speed

    You will add the snippet code later in this example. To ensure that the snippet code is run by SL1, select Enabled in this field. The snippet in this example is called "CPU Collection". To create a container for the snippet code, perform the following steps: You can leave the remaining fields set to the default values.īecause collection objects are assigned a specific snippet, you must create the container for the snippet code before creating the collection objects for this Dynamic Application.

  • This example does not have specific requirements for the other settings defined in this page.
  • To see data as quickly as possible, select Every 1 Minute in this field. Select Snippet Performance in this field. This example is a Snippet Performance Dynamic Application. This example is called "Snippet Telnet Example". The Create New Application page is displayed.
  • Select the Actions button, then Create New Dynamic Application.
  • Go to the Dynamic Applications Manager page ( System > Manage > Dynamic Applications).
  • how to use telnet to see router cpu speed

    To create this example Dynamic Application, perform the following steps: Finally, "exit" terminates the telnet session. When CPU utilization is requested, the results come back on one line showing utilization for three different collection intervals. Once logged in, commands may be submitted at the # prompt. From the command line, an interaction with the switch looks like this:įive seconds:8% one minute:8% five minutes:4%įrom the command line interface access attempt, we can see that to log in, the switch presents a "User Name:" prompt, followed by a "Password:" prompt. In this example, telnet is used to connect to a Dell Ethernet switch and collect CPU statistics. Snippets provide a convenient way to gather data via telnet, and then present, report and alert against the results. Telnet may be the only method to access some information, such as configuration data. Some network devices expose useful pieces of performance or configuration data via a telnet interface.










    How to use telnet to see router cpu speed