News

 Subscribe Add to Technorati Favorites

 

 

 

 


 

 

Search My Blog:

 

 

My Stats

  • Posts - 468
  • Comments - 242
  • Trackbacks - 265

Twitter












Tag Cloud


Recent Comments


Recent Posts


Archives


Post Categories


Blogs


Miscellanous


Noteworthy Stuff


Popular Posts


December 2007 Entries

SNMPv3 Discovery


  1. mgr -> agent: what is your engine Id?
    "This may be accomplished by generating a Request message with a securityLevel of noAuthNoPriv, a msgUserName of zero-length, a msgAuthoritativeEngineID value of zero length, and the varBindList left empty."
  2. agent -> mgr: my name is ____.
    "a Report message containing the snmpEngineID of the authoritative SNMP engine as the value of the msgAuthoritativeEngineID field within the msgSecurityParameters field.  It contains a Report PDU with the usmStatsUnknownEngineIDs counter in the varBindList."
  3. mgr -> agent:  what time do you have?
    "This may be accomplished by sending an authenticated Request message with the value of msgAuthoritativeEngineID set to the newly learned snmpEngineID and with the values of msgAuthoritativeEngineBoots and msgAuthoritativeEngineTime set to zero.  For an authenticated Request message, a valid userName must be used in the msgUserName field."
  4. agent -> mgr:  the time is ____.
    "a Report message containing the up to date values of the authoritative SNMP engine's  snmpEngineBoots and snmpEngineTime as the value of the msgAuthoritativeEngineBoots and msgAuthoritativeEngineTime fields respectively.  It also contains the usmStatsNotInTimeWindows counter in the varBindList of the Report PDU."

 

Technorati Tags: ,

posted @ Tuesday, December 18, 2007 3:04 PM | Feedback (0) |


PowerShell script - marking a parameter as required


param(
    [string] $optionalparam1, #an optional parameter with no default value
    [string] $optionalparam2 = "default", #an optional parameter with a default value
    [string] $requiredparam = $(throw ""requiredparam required."), #required parameter
    [switch] $switchparam; #an optional "switch parameter" (ie, a flag)
    )

Technorati Tags:

posted @ Friday, December 14, 2007 12:57 PM | Feedback (2) |


How to run CGI applications on IIS7


While trying out the /n software IP*Works! 3-D Secure MPI C++ Edition (for implementing Verified By Visa, MasterCard SecureCode, or JCB J/Secure) I needed to figure out how to run a CGI application in IIS7.  I had a compiled c++ exe (3dsecure.exe) that would handle my 3d secure authentication, but what was the next step?  Here's how to do it:

First, go to the Internet Information Services (IIS) Manager snap-in.  Click on the server in the Connections list, and then click on "ISAPI and CGI Restrictions" under the IIS features view.  Here you'll want to specify the path to a specific cgi application that you want to allow.  Optionally, here you could also allow any cgi app to run, but that's not recommended.

Next, go back to the server (or a specific website) and click on Handler Mappings.  You may already have a "CGI-exe" handler (for *.exe) that is disabled by default.  Enable this, or add a new one (Request path = *.exe, Module = CgiModule, Name = whatever you like).  In the handler permissions you'll need to have "Execute" checked.

posted @ Thursday, December 13, 2007 1:58 PM | Feedback (3) |