How do I restart the SNMP agents with the original command line options?
I'm creating an application that changes the SNMP trap target configuration files and then restarts the SNMP agent. I'm currently working with the mibiisa agent. I want to make sure that I restart the service with the new trap targets but with the original command line options. How can I restart the mibiisa service with the same command line options that it originally loaded with?
It is not "Network Time" that is the problem, but actually "SystemStarter." SystemStarter is an interim kludge to enable the work or the old StartupItems until they can be converted to LaunchDaemons or LaunchAgents controlled by launchd. Launcd calls SystemStarter to launch all the unconverted StartupItems. ntpd is now under the control of launchd directly.
Launchctl is the command to load and unload the plist files, but I don't think it has a mechanism to restart a daemon.
There are start and stop commands in launchctl, but the man page indicates that they are for debugging purposes.
I also imagine you could just kill the ntp daemon and let it restart with new settings. It is most likely set to "keepAlive" so that it will automatically restart.
Similar Messages
-
Can anyone help with Adobe_Updater.exe command line options?
Hi,
I am trying to run the updater silently to update Reader.
Thanks,
SteveJTry these...
msiexec /p <patch.msp> /qn --- silent install
msiexec /p <patch.msp> /qb – progress bar install -
I was reading slides on powerpoint and my macbook froze so I restarted it and it stuck in the start screen with the apple and the loading wheel and it would not go any further. How can I restart my computer?
Press and hold down the power button until it shut down. Then power it back up.
-
Java Exception when attempt to start the SNMP agent
Hi,
I require to start the SNMP agent in Solaris 2.6 running Web Logic 5.1. Upon entering
the command :
$ java weblogic.SNMPAgent, it is asking me for the password , and I gave the same.
The system is
generating a Java Exception given below:
Exception in thread "main" com.adventnet.snmp.snmp2.agent.AgentRuntimeException:
Failure in opening SnmpSession, errstat: 0, errvalue: 0
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(RuntimeException.java:47)
at com.adventnet.snmp.snmp2.agent.AgentRuntimeException.<init>(AgentRuntimeException.java:63)
at com.adventnet.snmp.snmp2.agent.SnmpAgent.addClientAndOpenSession(SnmpAgent.java:801)
at com.adventnet.snmp.snmp2.agent.SnmpAgent.restartSnmpAgent(SnmpAgent.java:939)
at com.adventnet.snmp.snmp2.agent.SnmpAgent.restartSnmpAgent(CompiledCode)
at com.adventnet.snmp.snmp2.agent.SnmpAgent.setPort(Compiled Code)
at weblogic.management.snmp.agent.WebLogicAgent.init(Compiled Code)
at weblogic.management.snmp.agent.WebLogicAgent.startup(WebLogicAgent.java:377)
at weblogic.SNMPAgent.main(SNMPAgent.java:25)
Given below is the file <startSNMPAgent.sh> and it's central contents:
$JAVA weblogic.SNMPAgent -password pbgst -serverURLs t3://localhost:7001 -trap
Destinations localhost:162
The classpath settings are correct and as per documentation.
There are SNMP agents also running in the machine which have been started by default
by Solaris,
doing a ps -ef | grep snmp shows:
root 556 1 0 Jun 23 ? 0:00 /usr/lib/dmi/snmpXdmid -s sunhyd01
root 516 1 0 Jun 23 ? 0:00 /usr/lib/snmp/snmpdx -y -c /etc/snmp/conf
pbgst 28090 25879 0 17:01:37 pts/32 0:00 grep snmp
I tried to start the SNMP agent on a diff. port and specified the same in the
.sh file and also changed the
trap Destinations port ---- it still generates the same exception.
Please do try to resolve this problem for me, as the project is in production
phase.
Thanks for all help beforehand.
Baivab
P.S. How can I obtain the id for WebSupport center, as we have using WL licensed
product
recently purchased in 3 nos.Hello,
way back we had the same problem and the reason was, that the path
names with the server instances were to long
(/opt/wlsroot/wlsInstances/axsExpert.SwissAir/S_243_7001 ->
/opt/wlsroot/wlsInstances/axsExpert.SAir/S_243_7001). But this was
with WLS 5.1 SP8.
Regards
Wolfgang Becker
Atraxis
On 9 Jul 2001 23:02:29 -0800, "Baivab Mitra"
<[email protected]> wrote:
>
Hello Michel,
Thanks for the reply. As you may have noticed, that the SNMP agents which are
already running, the owner is <root>. These services are required and I do not
have or I can not obtain the password to start/stop the same. As such, the only
option which I have is to start the weblogic-specific SNMP service in a different
port. Question: In the parameters, I specified : <snmpPort 1600 trace Destinations
1601> I am still getting the same error. What else is required and/or how do I
proceed to start the same service?
Thanks for your help beforehand,
Baivab
"Michael Girdley" <----> wrote:
It looks like another SNMP agent has already bound to the port.
Michael Girdley
BEA Systems
Learning WebLogic? http://learnweblogic.com
"Baivab Mitra" <[email protected]> wrote in message
news:[email protected]...
Hi,
I require to start the SNMP agent in Solaris 2.6 running Web Logic5.1.
Upon entering
the command :
$ java weblogic.SNMPAgent, it is asking me for the password , and Igave
the same.
The system is
generating a Java Exception given below:
Exception in thread "main"com.adventnet.snmp.snmp2.agent.AgentRuntimeException:
Failure in opening SnmpSession, errstat: 0, errvalue: 0
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(RuntimeException.java:47)
atcom.adventnet.snmp.snmp2.agent.AgentRuntimeException.<init>(AgentRuntimeExce
ption.java:63)
atcom.adventnet.snmp.snmp2.agent.SnmpAgent.addClientAndOpenSession(SnmpAgent.j
ava:801)
atcom.adventnet.snmp.snmp2.agent.SnmpAgent.restartSnmpAgent(SnmpAgent.java:939
atcom.adventnet.snmp.snmp2.agent.SnmpAgent.restartSnmpAgent(CompiledCode)
at com.adventnet.snmp.snmp2.agent.SnmpAgent.setPort(CompiledCode)
at weblogic.management.snmp.agent.WebLogicAgent.init(CompiledCode)
atweblogic.management.snmp.agent.WebLogicAgent.startup(WebLogicAgent.java:377)
at weblogic.SNMPAgent.main(SNMPAgent.java:25)
Given below is the file <startSNMPAgent.sh> and it's central contents:
$JAVA weblogic.SNMPAgent -password pbgst -serverURLst3://localhost:7001 -trap
Destinations localhost:162
The classpath settings are correct and as per documentation.
There are SNMP agents also running in the machine which have been startedby default
by Solaris,
doing a ps -ef | grep snmp shows:
root 556 1 0 Jun 23 ? 0:00 /usr/lib/dmi/snmpXdmid-s
sunhyd01
root 516 1 0 Jun 23 ? 0:00 /usr/lib/snmp/snmpdx -y-c
/etc/snmp/conf
pbgst 28090 25879 0 17:01:37 pts/32 0:00 grep snmp
I tried to start the SNMP agent on a diff. port and specified the samein
the
sh file and also changed the
trap Destinations port ---- it still generates the same exception.
Please do try to resolve this problem for me, as the project is inproduction
phase.
Thanks for all help beforehand.
Baivab
P.S. How can I obtain the id for WebSupport center, as we have usingWL
licensed
product
recently purchased in 3 nos. -
Weblogic SNMP Agent with WindowsNT SNMP Agent
Can I setup Weblogic SNMP agent as a sub-agent to Windows NT SNMP agent (Microsoft's version)? According to documentation, sub-agents for Microsft's SNMP agent need to be implemented as 32-bit multithreaded DLLs using the Microsoft SNMP API. Does Weblogic have DLLs that we could use for this purpose?
If that is not possible, is there a roadmap on how to provide the same support as the Microsoft's SNMP agent under Weblogic SNMP agent so that the Weblogic agent would provide the same visibility into the system that the Microsoft's agent does by default? Is this even possible?
Thanks."Sanjeev Mishra" <[email protected]> wrote:
>
Does anyone know how to make Microsoft's SNMP Master Agent run on a different port?
I figured this out. It uses the 'snmp' setting from the services file. Just changing that works. Would have been more convenient if there was also a command line flag for that purpose.
Thanks.
"Sanjeev Chopra" <[email protected]> wrote:
Sanjeev Mishra <[email protected]> wrote in message
news:39fde7f2$[email protected]..
Can I setup Weblogic SNMP agent as a sub-agent to Windows NT SNMP agent(Microsoft's version)? According to documentation, sub-agents for Microsft's
SNMP agent need to be implemented as 32-bit multithreaded DLLs using the
Microsoft SNMP API. Does Weblogic have DLLs that we could use for this
purpose?
No.
However, you can have the WLS agent proxy for the NT agent. e.g. you can run
the NT agent on a non-standard port and the WLS agent on 161 and then use
'-otherAgents' option so that the WLS agent will forward any reqs for the NT
agent MIB to that agent. In this setup the SNMP Manager can view that node
as one SNMP entity which supports the WLS MIB + NT MIB
See http://www.weblogic.com/docs51/admindocs/snmpagent.html#use_agent for
details.
If that is not possible, is there a roadmap on how to provide the samesupport as the Microsoft's SNMP agent under Weblogic SNMP agent so that the
Weblogic agent would provide the same visibility into the system that the
Microsoft's agent does by default? Is this even possible?
Thanks. -
in my music i have lost the column right with the alphabetic order .. how can i get back ?
Hello Camcam369,
It sounds like you are not seeing the alphabet listed on the right when perusing songs, artists, or albums in the Music app. I recommend a couple of steps you can take to get it back.
The first thing I recommend is quitting and relaunching the applications on your iPod touch:
Double-click the Home button.
Swipe left or right until you have located the app you wish to close.
Swipe the app up to close it.
You can find the full article here:
iOS: Force an app to close
http://support.apple.com/kb/ht5137
If you are still seeing the same issue after quitting and relaunching the Music app, I recommend restarting your iPod and then resetting if it's still not working:
Restarting your device
Press and hold the Sleep/Wake button for a few seconds until the red "slide to power off" slider appears, and then slide the slider.
Press and hold the Sleep/Wake button until the Apple logo appears.
Note: Reset your device only if you are unable to restart it.
Resetting your device
Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
You can find the full article here:
iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
http://support.apple.com/kb/ht1430
If the issue persists, the last thing I recommend is backing up and restoring your iPod touch:
iOS: How to back up and restore your content
http://support.apple.com/kb/HT1766
iTunes: Restoring iOS software
http://support.apple.com/kb/HT1414
Thank you for using Apple Support Communities.
Best,
Sheila M. -
in deleting an i message the previous message remains on the screen but with the time stamp of the deleted message . how do i fix this?
Hey everyone in Apple world!
I figured out how to fix the flashing yellow screen problem that I've been having on my MBP! Yessssss!!!
I found this super handy website with the golden answer: http://support.apple.com/kb/HT1379
I followed the instructions on this page and here's what I did:
Resetting NVRAM / PRAM
Shut down your Mac.
Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
Turn on the computer.
Press and hold the Command-Option-P-R keys before the gray screen appears.
Hold the keys down until the computer restarts and you hear the startup sound for the second time.
Release the keys.
I went through the 6 steps above twice, just to make sure I got rid of whatever stuff was holding up my bootup process. Since I did that, my MBP boots up just like normal. No flashing yellow screen anymore!!
(Note that I arrived at this solution when I first saw this page: http://support.apple.com/kb/TS2570?viewlocale=en_US)
Let me know if this works for you!
Elaine -
After the error occured, my phone was stuck on the apple logo with the loading bar below it. I cannot restart it because my power button is broken, and it will not be recognized on my iTunes. Any help how i can get my phone off or back to working again?! HELP PLEASE!!!
Looks like a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is required...
Be sure to make an appointment first... -
Does SNMP agent on the admin server polls managed objects automatically?
Hi All,
If I enable SNMP agent on the admin server, does it mean that it polls and caches MIB of all the managed servers in the domain and return it if a client requests for information or it polls and caches that MIB value only when requested?
2)Suppose a client requests for SNMP data of a managed instance and the instance is down, does admin server keep polling or does it timeout after a number of secs or retries. I don't see any config params in weblogic 8.1.3 or weblogic 9.0 console.
Thanks. I appreciate your answers.
Thanks,Are you saying the notes are incorrect?
No, I wasn't commenting on that at all. I was just saying that DBUA is the recommended way of upgrading databases... and that's in spades if you're talking about 100GB databases.
I'll lay odds that DBUA to 10.2.0.1 and then patching to 10.2.0.3 is quicker than exporting and importing 100GB of data.
(Applying a 10.2.0.3 patch is done with opatch and doesn't require a fresh installation of Oracle. A patch mostly just modifies the data dictionary: it's finished in minutes, not hours).
My real point: these sorts of questions are incredibly easy to ask, answer, discard, re-ask, modify, mull over and basically experiment with in a virtual environment.
And again: it's utterly bizarre why you wouldn't have physical access to this database (and keep in mind that I can't keep in mind little nuggets of information such as this one which you didn't see fit to share earlier!)
It's in a virtual server. Virtual servers can be zipped up and emailed! (OK, maybe not 100GB... but I've shipped a small hard disk in a zip-lok pack envelope half way round the world before now -though obviously it wasn't critical to have the contents of that envelope available for use all the time... Still, it sounds to me like here's a technology (virtualisation) that's not being properly exploited). -
How can i use my apple ID with the itune store over my windows laptop
how can i use my apple ID with the itune store over my windows laptop
If you don't have iTunes installed on your laptop then you can download and install it from here : http://www.apple.com/itunes/download/
You can then log into your account on it via the Store > Sign In menu option (on iTunes 11 on a PC you can get the menus to show via control-B) :
And you can then select the Store on the left-hand sidebar (you can enable the sidebar via control-S), and then browse items in the store and buy them by clickin on their price. -
How do I fix a initializing problem with my macbook pro? I only get to the blank screen with the apple logo and the "processing something" sign... it just doesn't start the system....
Please help
MarceloIf there is no loading bar, it's usually a problem with a third party kext file in OS X itself.
You can press the power button down to force a hardware shutdown, then reboot holding the shift key down on a wired or built in keyboard, this will disable them and you go around and update your third party software.
Gray, Blue or White screen at boot, w/spinner/progress bar
Also take this time to backup your users files off the machine if possible.
Most commonly used backup methods
Sometime that won't work and you need to do more
..Step by Step to fix your Mac -
How do I forward a text message with the iPhone?
How do I forward a text message with the iPhone?
You could take a screen shot (hold and release both buttons simultaneously) and then email the resulting image to someone.
// crude workaround for now... -
How do you select a single image with the keyboard?
I can use the "/" key to deselecting the current photo but how do I select the current photo with the keyboard? Usually the space bar is used for this but that displays the image. Is the only way to select the current photo by using the mouse?
OK, now that the question has been clarified....
Pressing and holding the Shift key as you move through the grid with the arrow keys will individually multi-select them, but that breaks down if you want non-contiguous selections, i.e. lifting off the shift key to skip a photo will cause all previous selections to be lost when you use the arrow key to advance. I think the only way for non-contiguous selection is ctrl-click. -
HT4994 How do I use which is sim with the device
How do I use which is handsome with the device
If the phone is carrier locked, contact the carrier it is locked to and find out:
a) if they offer unlocking
and
b) if you qualify and what the charges to do so are. -
The following fills a DataTable with the contents of an Excel spreadsheet.
oledbCmd.CommandText = "SELECT * FROM [" + stSheetName + "$]";
DataTable dtDataTable = new DataTable();
using (OleDbDataAdapter oledbAdapter = new OleDbDataAdapter(oledbCmd))
oledbAdapter.Fill(dtDataTable);
How do I fill an Excel spreadsheet with the contents of a DataTable?
bhs67You can try this Excel library, it can help u to
export datatable to excel to Database.
After add the reference to your project ,add the following code:
private void button1_Click(object sender, EventArgs e)
//connect database
OleDbConnection connection = new OleDbConnection();
connection.ConnectionString @"Provider=""Microsoft.Jet.OLEDB.4.0"";Data Source=""demo.mdb"";User Id=;Password="
OleDbCommand command = new OleDbCommand();
command.CommandText = "select * from parts";
DataSet dataSet = new System.Data.DataSet();
OleDbDataAdapter dataAdapter = new OleDbDataAdapter(command.CommandText,connection);
dataAdapter.Fill(dataSet);
DataTable t = dataSet.Tables[0];
//export datatable to excel
Workbook book = new Workbook();
Worksheet sheet = book.Worksheets[0];
sheet.InsertDataTable(t, true, 1, 1);
book.SaveToFile("insertTableToExcel.xls");
System.Diagnostics.Process.Start("insertTableToExcel.xls");
http://www.e-iceblue.com/Tutorials/Spire.XLS/Spire.XLS-Program-Guide/Data-Export-/Import-Export-Datatable-to-Excel-from-Database.html
Maybe you are looking for
-
2 accounts on the same computer
hi guys. sorry for probably submitting a basic question but im struggling to work how to do something. ive just bought a new intel imac and want to set up my wife as a second user. i also want her to have access to the itunes library and iphoto. so t
-
Clarification of background processing and BAPI_DOCUMENT_CREATE2
Hello, i am sorry to mention this long discussed topic, but i would very appreciate to clarify how can i checkin new originals for a new document using background processing. we are trying to use BAPI_DOCUMENT_CREATE2 to create a document and checkin
-
Complicating issue with CS 5 installation error message
I have installed CS5 (not CC) onto my laptop, as my second install. I am getting the message "One or more files in the Adobe Application Support folder, necessary for running PS, are missing. Please run the PS installer and re-install PS." I know
-
Attachment is uploaded the filed in OPTY has to be updated automatically
Hi everyone, I have requirement whenever the attachment has been added there is the filed in OPTY that has to automatically updated to "YES" Can u please help out Regards Laksh
-
Playing hidden embedded videos in swf?
Hi all, A plea for help with a problem encountered. Firstly a big thank you for the help recieved in solving a previous problem, with animations not resetting themselves of frame reset! My next issue is as follows: The project I am working on involve