Archive by Author

Appcelerator Titanium SNMP module is now open sourced

We recently open sourced the nf_snmp Titanium module, and have released the code on Github.

Quick example of how to use this

var snmpModule = require("netfunctional.snmp");

var snmp = snmpModule.createSNMPClient({
hostname : hostaddress,
community : "public",
mib : 'system.sysUpTime.0',
time_out : 50000 // 5 seconds
});
snmp.open();

var result = snmp.fetch();
snmp.close();

if(result == null) {
//_callback(null);
return null;
} else {
var temp = result.split(" ");
var tmp2 = '';
for(var i = 3; i < temp.length; i++) { tmp2 += temp[i] + " "; } return _callback(hostaddress, tmp2); }

Comments Off on Appcelerator Titanium SNMP module is now open sourced

Redeeming App Promotion Codes

As part of app marketing and release processes, we frequently use Apples iTunes promo codes or redemption codes – the seemingly random string of characters issued by the iTunes store.

We’ve put together a quick doc for our customers on how to redeem these codes, using either the App Store on the device, or iTunes – you can download it from here: How To Redeem Promo Codes

Comments Off on Redeeming App Promotion Codes

Enabling SNMP on VMWare ESX + ESXi

ESX 4.x
VMWare supports SNMP on ESX through the use of the net-snmp agent – see VMWare’s SNMP on 4.x docs for details. An example snmp.conf file:

syscontact yourname@yourdomain.com
syslocation Datacenter, Rack 32, U2
rocommunity public
proxy -v 1 -c public udp:127.0.0.1:171 .1.3.6.1.4.1.6876
proxy -v 2c -c public udp:127.0.0.1:171 .1.3.6.1.4.1.6876


ESXi 4.x

Matthew White has written a quick and to the point article on enabling SNMP on ESXi – you can read it on his blog.

Comments Off on Enabling SNMP on VMWare ESX + ESXi

Enabling SNMP on Cisco Routers

Our SNMP Scan App searches for SNMP enabled devices. This usually finds printers, home routers and other networked devices. By default, however, Cisco IOS devices won’t be found, and can’t be graphed. This is because Cisco IOS disables SNMP by default.

Here’s to safely enable it.

  1. Login to your router, switch or access point.
  2. Enter configuration mode (config term)
  3. Setup an access list on which network you will allow SNMP requests to come from. In our example, we’ll use the 10.0.1.0/24 network. So we enter
    access-list 30 permit 10.0.1.0 0.0.0.255
  4. Enable SNMP – pick your community name. In our example, we’ll use ‘netfunctional’ as the community name.
    snmp-server community netfunctional RO 30

    This lets any device which matches Access List 30 talk to our Cisco device using the SNMP community ‘netfunctional’.

  5. Exit configuration mode – enter
    exit
  6. Save the configuration – enter
    write memory

Note that these instructions will likely work for Juniper, Foundry Networks and other devices which use Cisco IOS-like syntax for configuration. For more information, see Cisco’s Cisco IOS Configuration – SNMP Chapter.

Comments Off on Enabling SNMP on Cisco Routers

Obtaining Promo Codes (iOS)

Our customers often ask us how to go about getting promo codes for their apps. These need to be requested by the iTunes account holder, not a regular development account. The steps are simple:

  1. Log into the iTunes Connect account as a team leader
  2. From the main page select “Manage Your Applications”
  3. Select the app icon of the app to generate promo codes for
  4. On the current version of the app select  “View Details”
  5. Select the “Promo Codes” blue bar in the top right
  6. Enter the number of codes you wish to generate.  Only request what you need since there is a 50 limit for every release of the app.
  7. If you want to view previously issued codes select the “View History” button in the top left

  8. Accept the terms and agreements
  9. Download the text file with the codes
  10. Distribute codes to users

Note: Codes only last for 4 weeks (28 days) so don’t just request all 50 at once.

Comments Off on Obtaining Promo Codes (iOS)