Retrieving data from SNMP probe variables - security

When SNMP walking or using a 'Single OID Viewer' probe I can retrieve any of the OIDs information. However, when trying to use the custom probe from the interactive snmp probe creator all of the OIDs return '[N/A]'
Any help would be greatly appreciated.
I am adding more info below for context
1. snippet code for a custom probe
2. what I am expecting
3. What my code returns
Below is an example code for the OID variables I require
-- The purpose of the code is to record status data from a device and displays the device status for user.
<snmp-device-variables>
TLPPOIName_, spvLDasName.${Slot},DEFAULT, "TLPPOIName"
PoiDescription_, spvLDasCommercialDescription.${Slot},DEFAULT, "PoiDescription"
PoiAttDl1_, spvLDasAttDigDl.${Slot}.1,DEFAULT, "Poi Attenuation Dl path 1"
PoiAttDl2_, spvLDasAttDigDl.${Slot}.2,DEFAULT, "Poi Attenuation Dl path 2"
PeakPwr1_, spvLDasPeakPwrDl.${slot}.1, DEFAULT, "PeakPwr path 1"
PeakPwr2_, spvLDasPeakPwrDl.${slot}.2, DEFAULT, "PeakPwr path 2"
PwrAlarm_, spvLDasPwrAlarmHysteresis.${Slot},DEFAULT, "PwrAlarm"
</snmp-device-variables>`
<datasets>
$PoiAttDl1_, "PoiAttDl1", "dB", "true", "Poi Attenuation Dl path 1"
$PoiAttDl2_, "PoiAttDl2", "dB", "true", "Poi Attenuation Dl path 2"
$PeakPwr1_, "PeakPwr1", "dBm", "true", "PeakPwr path 1"
$PeakPwr2_, "PeakPwr2", "dBm", "true", "PeakPwr path 2"
$PwrAlarm_, "PwrAlarm", "dBm", "true", "PwrAlarm"
</datasets>`
<snmp-device-display>
\B5\TLPPOI\P0\
\4\ TLPPOIName:\0\ $TLPPOIName_\M0\
\4\ PoiDescription:\0\$PoiDescription_ \M0\
\4\ Poi Attenuation Dl path 1:\0\$PoiAttDl1_ \M0\
\4\ Poi Attenuation Dl path 2:\0\$PoiAttDl2_ \M0\
\4\ PeakPwr path 1:\0\$PeakPwr1_ \M0\
\4\ PeakPwr path 2:\0\$PeakPwr2_ \M0\
\4\ PwrAlarm:\0\$PwrAlarm_\M0\
</snmp-device-display>
SNMP walk results: Below are example of values I expect to see
VZW 800
20
2
Display window after I use the custom probe I wrote
TLPPOIName: [N/A]

Related

GPT-3 davinci gives different results with the same prompt

I am not sure if you have access to GPT-3, particularly DaVinci (the complete-a-sentence tool). You can find the API and info here
I've been trying this tool for the past hour and every time I hit their API using the same prompt (indeed the same input), I received a different response.
Do you happen to encounter the same situation?
If this is expected, do you happen to know the reason behind it?
Here are some examples
Request header (I tried to use the same example they provide)
{
"prompt": "Once upon a time",
"max_tokens": 3,
"temperature": 1,
"top_p": 1,
"n": 1,
"stream": false,
"logprobs": null,
"stop": "\n"
}
Output 1
"choices": [
{
"text": ", this column",
"index": 0,
"logprobs": null,
"finish_reason": "length"
}
]
Output 2
"choices": [
{
"text": ", winter break",
"index": 0,
"logprobs": null,
"finish_reason": "length"
}
]
Output 3
"choices": [
{
"text": ", the traditional",
"index": 0,
"logprobs": null,
"finish_reason": "length"
}
]
I just talked to OpenAI and they said that their response is not deterministic. It's probabilistic so that it can be creative. In order to make it deterministic or reduce the risk of being probabilistic, they suggest adjusting the temperature parameter. By default, it is 1 (i.e. 100% taking risks). If we want to make it completely deterministic, set it to 0.
Another parameter is top_p (default=1) that can be used to set the state of being deterministic. But they don't recommend tweaking both temperature and top_p. Only one of them would do the job.
OpenAI documenation:
https://beta.openai.com/docs/api-reference/completions/create
temperature number Optional Defaults to 1
What sampling temperature to use. Higher values means the model will
take more risks. Try 0.9 for more creative applications, and 0 (argmax
sampling) for ones with a well-defined answer.
We generally recommend altering this or top_p but not both.
top_p number Optional Defaults to 1
An alternative to sampling with temperature, called nucleus sampling,
where the model considers the results of the tokens with top_p
probability mass. So 0.1 means only the tokens comprising the top 10%
probability mass are considered.
We generally recommend altering this or temperature but not both.

Combining probe files in intermapper

I have two devices
1. Device 1
2. Device 2
for now I have two separate probe files for both the devices since both follows different format in Intermapper status window. I want to combine them into a single probe file.
Solutions Tried:
Tried giving the following condition under snmp-device-display tag
${EVAL: $DT == "Device 1"? "format for device 1" : $DT == "Device 2"? "format for device 2" : ""}
The problem was, I was not able to give this particular stmt inside the string
${chartable: ##.## : $value1}
The output of the EVAL conditions must be a string, since my format was too big (more than 255 char), it throwed me an exception. Rectified it by splitting the string and concatenating it.
Here is some sample code similar to the solution I have tried:
<snmp-device-variables>
DT_, 1.3.6.1.4.1.44555.1.1.10.0, DEFAULT, "dt"
DT1VAL1_ 1.3.6.1.4.1.44555.1.1.10.1 DEFAULT, "d1v1"
DT1VAL2_ 1.3.6.1.4.1.44555.1.1.10.2 DEFAULT, "d1v2"
DT1VAL3_ 1.3.6.1.4.1.44555.1.1.10.3 DEFAULT, "d1v3"
DT1VAL4_ 1.3.6.1.4.1.44555.1.1.10.4 DEFAULT, "d1v4"
DT2VAL1_ 1.3.6.1.4.1.44555.1.1.11.1 DEFAULT, "d1v1"
DT2VAL2_ 1.3.6.1.4.1.44555.1.1.11.2 DEFAULT, "d1v2"
DT2VAL3_ 1.3.6.1.4.1.44555.1.1.11.3 DEFAULT, "d1v3"
</snmp-device-variables>
<snmp-device-display>
\0\ ${EVAL: $DT_=="device1" ? " \4\ DT1VAL1_:\0\ ${chartable: ##.## : $DT1VAL1_} \3G\Val1\M0\
\4\ DT1VAL2_:\0\ ${chartable: ##.## : $DT1VAL2_} \3G\Val2\M0\
\4\ DT1VAL3_:\0\ ${chartable: ##.## : $DT1VAL3_} \3G\Val3\M0\
\4\ DT1VAL4_:\0\ ${chartable: ##.## : $DT1VAL4_} \3G\Val4\M0\"
: $DT_ == "device2" ? " \4\ DT2VAL1_:\0\ ${chartable: ##.## : $DT2VAL1_} \3G\Val2\M0\
\4\ DT2VALUE2_:\0\ ${chartable: ##.## : $DT2VAL2_} \3G\Val2\M0\
\4\ DT2VALUE3_:\0\ ${chartable: ##.## : $DT2VAL3_} \3G\Val3\M0\":""}
</snmp-device-display>
Kindly give me any other solution we can follow to combine probes.

Sharepoint shows (incomplete) id in "AllItems.aspx"

In a Sharepoint site: "https://(company).sharepoint.com/sites/(subject)/Shared%20documents/Forms/AllItems.aspx" i see among others the column: "Id". This ID however shows only the numbers f.e. 35.
It does not show the complete number "aadduej-35". The complete number is shown when i open the document properties. There i see "Document-id" with the complete prefix and the id number. How do i arrange that in the .aspx is shown "aadduej-35" instead of "35"
All help is appreciated!
Thanks in advance ;-)
You could create a calculated column and set the formula like this:
=CONCATENATE("aadduej-",ID)
Or you could format the column with json formatting:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": {
"operator": "+",
"operands": [
"aadduej-",
" ",
"[$ID]"
]
}
}

Signature tags within pdf?

I am evaluating Docusign API to automate document signing process.
I see that we need to add Tabs, Anchor tags and provide with the X,Y coordinates/offsets to place the signatures. Is there a easier way to do this. I was wondering if I can add embed this information within my document so that recipient can see this while signing.
Really appreciate any advice.
Thanks
N
With the DocuSign API you have two main methods of positioning your Stick-eTabs. One method is through Absolute positioning, where you use X and Y coordinates to place your tabs at specific locations on the document(s). The other method is through Relative or Anchor Based positioning, where tab placement is based on actual document content.
For instance, you could use Absolute positioning to place a signature tab at a location 200 pixels to the right, and 100 pixels down from the top left of the document using the following (partial) JSON body:
"tabs": {
"signHereTabs": [
{
"xPosition": "200",
"yPosition": "100",
"documentId": "1",
"pageNumber": "1",
}
]
}
On the other hand, if you wanted to use Relative positioning you can actually place any tab at a location based on document content. For instance, if you had the text "Please Sign Here" somewhere in your document, you can place any tag right on or near this text very easily. You could place a signature tab 1 inch to the right, or an initial tab 5 pixels to the left and 10 pixels down, or a date tab 1 cm up and 2 cms to the right, for example. To do this you could use the following JSON to define your tab(s):
"tabs": {
"signHereTabs": [
{
"anchorString": "Please Sign Here:",
"anchorXOffset": "1",
"anchorYOffset": "0",
"anchorIgnoreIfNotPresent": "false",
"anchorUnits": "inches"
}
]
}
The above example would place a signature tab 1 inch to the right and at the same height as the text "Please Sign Here". One common approach that many developers take here is to embed content into the documents themselves such as the string \s1 for example. They additionally set the font color to the same color as the background where the string is placed (usually white) and this in turn makes the string \s1 invisible so that the recipient only sees the DocuSign tab at this location. For more information on this and absolute vs. relative tagging please read the Tab Positioning page on the Stick-eTabs features section.

Sharepoint 2013 - Result Type Priority

I successfully managed to create two custom result types with two custom display templates.
I configured the result types in the way, that if the titel of the result item contains "String 1" it uses *Item_Case1* and if the title contains "String 2" it uses *Item_Case2*.
Now I tried to play around with the priorites.
If the title is "String 1 blablabla String 2" I want it to use "Item_Case1".
A little schematic how I want it to be:
(SearchTerm --> Display Template)
- "String 1 bla bla" --> "Item_Case1"
- "String 2 bla bla" --> "Item_Case2"
- "String 1 blabla String 2" --> "Item_Case1"
According to this site the priority which display template will be used is defined by the standing in the list of result types.
But no matter what I tried, it wouldn't work. The only (ugly) workaround I found was to deactivate the templates by altering the searchTerm from "String 1" to "String 1bla" first and then activate them in the order I needed them.
So, is this a known bug or did I do something wrong?

Resources