Quantcast
Viewing all articles
Browse latest Browse all 20202

Use output of an executed script to populate a Custom Property field.

As an example, using Show Flash output shown below. If we could grab the "### byes free" and then shove the number displayed into a custom property, we could then use that to determine if the flash memory of the device can have additional files uploaded to it, This could be a serious time-saver. While this is what's pressing me to look for this capability, there are other commands where the output is not easily obtainable from SNMP polling or SNMP and syslog traps.

 

CCY-4847-BLA-1-SW-SVR-01#show flash:

 

 

Directory of flash:/

 

 

    2  -rwx        2072  Dec 11 2014 22:44:33 -06:00  multiple-fs

    3  -rwx        1584  Mar 29 2011 20:29:45 -05:00  vlan.dat

    4  -rwx        1912  Dec 11 2014 22:44:33 -06:00  private-config.text

  532  -rwx       32999  Dec 11 2014 22:44:33 -06:00  config.text

    6  drwx         512  Dec 11 2014 21:50:26 -06:00  c3750e-universalk9-mz.150-2.SE7

 

 

57671680 bytes total (31740416 bytes free)

CCY-4847-BLA-1-SW-SVR-01#

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 20202

Trending Articles